<template>
	<div class="table">
		<div class="crumbs">
			<el-breadcrumb separator="/">
				<el-breadcrumb-item><i class="el-icon-tickets"></i>简历管理</el-breadcrumb-item>
			</el-breadcrumb>
		</div>
		<div class="container">
			<!-- <div class="handle-box flex justify-between">
				<div>
					<span>审核状态：</span>
					<el-select v-model="search_mark" placeholder="请选择" @change="statusChange">
						<el-option v-for="item in statusOptions" :key="item.id" :label="item.name" :value="item.id">
						</el-option>
					</el-select>
					<span class="margin-left-sm">关键字：</span>
					<el-input v-model="search_keyName" style="width: 250px;" placeholder="请输入关键字"></el-input>
					<el-button type="primary" class="margin-left-sm" @click="search">搜索</el-button>
				</div>
				<el-button type="success" @click="addEmploy">新增</el-button>
			</div> -->
			<el-table :data="tableData" border style="width: 100%" ref="tableData">
				<el-table-column prop="name" label="求职者" sortable width="150">
				</el-table-column>
				<el-table-column prop="resume" label="工作简历">
				</el-table-column>
				<el-table-column prop="birthday" label="生日">
				</el-table-column>
				<el-table-column prop="phone" label="联系电话">
				</el-table-column>
				<el-table-column prop="gender" label="性别">
				</el-table-column>
				<el-table-column prop="sendDate" label="投递时间">
				</el-table-column>
				<el-table-column prop="isRead" label="消息装填">
				</el-table-column>
				<el-table-column prop="isCallBack" label="是否打过电话">
				</el-table-column>
				<!-- <el-table-column label="操作" width="280">
					<template slot-scope="scope">
						<el-button size="small" @click="editStore(scope.row)" type="primary">修改</el-button>
						<el-button size="small" @click="deleteStore(scope.row)" type="danger">删除</el-button>
					</template>
				</el-table-column> -->
			</el-table>
			<div class="pagination" v-if="tableData.length != 0">
				<el-pagination @current-change="getTableList" :page-size="size" :current-page.sync="pageNum" layout="total, prev, pager, next,jumper,slot"
				 :page-count="pages" :total="total">
					<span class="goPize">前往</span>
				</el-pagination>
			</div>
		</div>
	</div>
</template>

<script>
	export default {
		name: 'deliver',
		data() {
			return {
				size: 10,
				pageNum: 1,
				pages: null,
				total: 0,
				tableData: [], //表数据
			}
		},
		watch: {

		},
		mounted() {
			this.getTableList();
		},
		methods: {
			//获取表数据		
			getTableList(pageNum) {
				let that = this;
				pageNum = pageNum ? pageNum : that.pageNum;
				that.HttpUtil.encryptGet(
					that,
					that.Global.URLPATH.GETDELIVER, {
						id: that.$route.params.id,
						pageNum: pageNum,
						size: 10
					},
					function(res) {
						if (res.data.list.length != 0) {
							that.tableData = res.data.list;
							that.pages = res.data.pages;
							that.pageNum = res.data.pageNum;
							that.total = res.data.total;
						} else {
							that.$message.warning("没有记录！");
							that.tableData = [];
							that.pages = 1;
							that.total = 1;
							that.pageNum = 1;
						}
					},
					function(data) { //访问失败
						that.tableData = [];
						that.total = 1;
						that.$message.success(data.msg);
					});
			},
		}
	}
</script>

<style>
	@import "../../../assets/css/common.css";
</style>
